package com.woniuxy.intellihome.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *匹配了类名跟数据库对应的表名
 * 增加了id属性
 * 匹配了属性名和表中的列名
 * @author jobob
 * @since 2021-08-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Setter
@Getter
@TableName("m_order")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    private int id;
    @TableField("order_num")
    private String orderNum;

    @TableField("user_id")
    private Integer userId;
    @TableField("order_time")
    private String orderTime;

    private String accept;

    private String tel;

    private String address;

    private BigDecimal prices;

    private String sendmode;

    private String paymode;
    @TableField("pay_time")
    private String payTime;
    @TableField("send_time")
    private String sendTime;
    @TableField("accept_time")
    private String acceptTime;

    private String status;

    //存储该order下订单详情信息
    @TableField(exist = false)
    private List<Orderitem> orderitems;

    //订单起止时间属性
    @TableField(exist = false)
    private String startOrderTime;
    @TableField(exist = false)
    private String endOrderTime;

    //购物车商品明细
    @TableField(exist = false)
    private List<Cart> carts;

}
